package org.travel.app.entity.ticket;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author nmm
 * @date 2024-12-2024/12/27
 * @deriction  前端遍历时用户优惠券所需实体
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserTicketDiscount {
    /**
     * 优惠券id
     */
    private Integer discountId;
    /**
     * 优惠券类型
     */
    private Integer ticketTypesId;

    /**
     * 套餐id
     */
    private Integer packageId;

    /**
     * 开始日期
     */
    private LocalDate startDate;

    /**
     * 结束日期
     */
    private LocalDate endDate;

    /**
     * 优惠价格
     */
    private BigDecimal discountValue;

    /**
     * 优惠标题
     */
    private String discountTitle ;

    /**
     * 满减满足条件
     */
    private Integer discountCondition;

    /**
     * 优惠描述
     */
    private String  discountDescription;


    /**
     * 用户优惠券数量
     */
    private  Integer quantity;

    /**
     * 优惠券图片
     */
    private String discountImg;

    /**
     * 兑换积分
     */
    private Integer needInteger;

    /**
     * 优惠券类型
     */
    private String discountType;

    public UserTicketDiscount(Integer quantity) {
        this.quantity = quantity;
    }
}
